import { PropType } from 'vue';
import { SearchOptionsType, CSearchBarProps } from '../../SearchBar';

export const pageTableSidebarProps = {
  /**
   * 搜索的form
   */
  searchForm: {
    type: Object as PropType<any>,
    default: () => {
      return {};
    }
  },
  // 搜索表单配置
  sidebarOption: {
    type: Object as PropType<SearchOptionsType>,
    default: undefined
  }
};

export interface CPageTableSidebarProps {
  /**
   * 搜索的form
   */
  searchForm: any;
  // 侧边栏配置
  sidebarOption: CSearchBarProps['searchOptions'][0];
}
